package org.hdax.dm.client;

import org.hdax.dm.entity.order.DmOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "dm-order-provider")
public interface DmOrderClient {

    @PostMapping(path = "/addOrder")
    void addOrder(@RequestBody DmOrder dmOrder);

    @PostMapping(path = "/delOrder")
    void delOrder(@RequestParam("orderNo") String orderNo);
}
